package com.inc.admin.dao.biz;

import com.inc.admin.domain.biz.Book;
import com.inc.admin.domain.biz.BookHistory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author admin
* @description 针对表【book_history】的数据库操作Mapper
* @createDate 2024-11-04 22:28:16
* @Entity com.inc.admin.domain.biz.BookHistory
*/
@Mapper
public interface BookHistoryMapper {


    List<BookHistory> listHistoryByPage();

    int insertHistory(BookHistory req);

    int updateHistory(BookHistory req);

    int deleteHistory(Integer id);

    Book selectBookById(Integer bookId);

    int updateBookCount(Integer bookId, int count);

    void updateBookBackCount(Integer bookId, Integer count);
}
